package CRM;

import com.google.appengine.api.datastore.Key;
import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * @version 0.1.2
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Note
{
    /**
     * Contains unique id for Project
     */
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    /**
     * Contains text of Note
     */
    @Persistent
    private String text;

    /**
     * Contains Date of Note
     */
    @Persistent
    private Date date;

    public Note(Key key, String text, Date date)
    {
        setKey(key);
        setText(text);
        setDate(date);
    }

    public Date getDate()
    {
        return date;
    }

    public void setDate(Date date)
    {
        this.date = date;
    }

    public Key getKey()
    {
        return key;
    }

    public void setKey(Key key)
    {
        this.key = key;
    }

    public String getText()
    {
        return text;
    }

    public void setText(String text)
    {
        this.text = text;
    }

}